package io.gitee.yth.design.pattern.test.core.pattern.structural.decorator.code.coffee;

import io.gitee.yth.design.pattern.test.core.pattern.structural.decorator.code.Drink;

/**
 * 普通的Drink实现类
 *
 * @author yth
 * @since 2023-04-26-16:09
 */
public abstract class Coffee extends Drink {

    public Coffee(String description, double price) {
        super(description, price);
    }

    /**
     * 实现方法
     */
    @Override
    public String getDescription() {
        return this.description;
    }

    /**
     * 实现方法
     */
    @Override
    public double getPrice() {
        return this.price;
    }
}
